package fun.qu_an.minecraft.fabric.fzbbl.event;

import net.fabricmc.fabric.api.event.Event;
import net.fabricmc.fabric.api.event.EventFactory;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;

public interface PistonBrokeBedrockCallback {
	Event<PistonBrokeBedrockCallback> EVENT = EventFactory.createArrayBacked(PistonBrokeBedrockCallback.class,
		listeners -> (world, pos) -> {
			for (PistonBrokeBedrockCallback listener : listeners) {
				listener.interact(world, pos);
			}
		});

	void interact(World world, BlockPos pos);
}
